package cc.openkit.admin.service.shopType.impl;

import cc.openkit.admin.dao.ShopTypeMapper;
import cc.openkit.admin.model.ShopType;
import cc.openkit.admin.service.common.impl.BaseServiceImpl;
import cc.openkit.admin.service.shopType.ShopTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class ShopTypeServiceImpl extends BaseServiceImpl<ShopType> implements ShopTypeService{
    @Resource
    private ShopTypeMapper shopTypeMapper;
    //查询所有的分类
    public List<ShopType> findShopType() {
        return shopTypeMapper.findShopType();
    }

    public List<ShopType> findShopTypeByTypeId(String decorationStage) {
        return shopTypeMapper.findShopTypeByTypeId(decorationStage);
    }
}
